package net.qiqbframework.modelling.command;

import net.qiqbframework.commandhandling.CommandMessage;
import net.qiqbframework.modelling.command.voucher.CommandLoadVoucher;

import javax.annotation.Nonnull;

/**
 * 命令解析
 */
public interface CommandTargetResolver {

    /**
     * 解析命令中的加载凭证
     *
     * @param command
     * @return
     */
    CommandLoadVoucher resolveLoadVoucher(@Nonnull CommandMessage<?> command);


}
